package spring.learn.tx.note;

import org.springframework.transaction.annotation.Transactional;
import org.springframework.transaction.support.TransactionSynchronizationManager;

/**
 * Description
 * Copyright © 启明星辰 版权所有
 *
 * @author chenjiquan
 * @date 2024-09-06
 */
public class TransactionSynchronizationManagerNote {

	@Transactional
	public void test(){
		// 当前事务的隔离级别
		TransactionSynchronizationManager.getCurrentTransactionIsolationLevel();
		// 当前事务的名字
		TransactionSynchronizationManager.getCurrentTransactionName();
	}
}
